/**
 * @brief   声明一些公共的变量、结构体
 *
 * @file    aiio_common.h
 * @copyright Copyright (C) 2020-2023, Shenzhen Anxinke Technology Co., Ltd
 *
 *
 * @par Change Logs:
 * <table>
 * <tr><th>Date               <th>Version             <th>Authorhor           <th>Notes
 * <tr><td>2023-06-12          <td>1.0.0            <td>Ai-Thinker             <td>
 */

#ifndef __AIIO_COMMON_H_
#define __AIIO_COMMON_H_
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdint.h>
#include <stdbool.h>
#include "aiio_protocol_comm.h"
#include "aiio_cloud_rtc.h"
#include <FreeRTOS.h>
#include <semphr.h>
#include <event_groups.h>
#include "queue.h"
#include "cloud_config.h"
#include "cloud_mutual.h"


#define FLASH_RW_START_ADDR                 (0x1f3000)
#define FLASH_RW_WIFI_DATA_ADDR              (FLASH_RW_START_ADDR)

int aiio_flash_get_wifi_config_data(wifi_config_data_t* config_data);
void aiio_flash_save_wifi_config_data(wifi_config_data_t* config_data);
void aiio_flash_clear_config_data(void);


#endif